package com.example.qxfw.cshx.controller;

import com.example.qxfw.common.SysResult;
import com.example.qxfw.common.entity.zy.CshxZsyb;
import com.example.qxfw.cshx.service.CshxYjcxService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "城市火险--预警查询")
@RestController
@CrossOrigin
@RequestMapping("/UrbanFireWarningQueryController")
public class UrbanFireWarningQueryController {
    @Autowired
    private CshxYjcxService yjcxService;

    @ApiOperation("城市火险--预警查询-查询")
    @GetMapping("/selectByTimePeroid")
    public SysResult selectByTimePeroid(String start, String end){
        List<CshxZsyb> list = yjcxService.selectByTimePeroid(start, end);
        return SysResult.success(list);
    }

}
